home *** CD-ROM | disk | FTP | other *** search
/ Giga Games 1 / Giga Games.iso / net / hack / 3_1 / sys / msdos / setup.bat < prev    next >
Encoding:
DOS Batch File  |  1993-01-25  |  2.0 KB  |  72 lines

  1. echo off
  2. REM     SCCS Id: @(#)setup.bat   93/01/18
  3. REM     Copyright (c) NetHack PC Development Team 1990, 1991, 1992, 1993
  4.  
  5. REM     NetHack may be freely redistributed.  See license for details.
  6.  
  7. REM setup batch file for msdos, see Install.dos for details.
  8.  
  9. if not %1 .==. goto ok_parm
  10. goto err_set
  11.  
  12. :ok_parm
  13. echo Checking to see if directories are set up properly ...
  14. if not exist ..\..\include\hack.h  goto err_dir
  15. if not exist ..\..\src\hack.c      goto err_dir
  16. if not exist ..\..\dat\wizard.des  goto err_dir
  17. if not exist ..\..\util\makedefs.c goto err_dir
  18. if not exist ..\share\lev_yacc.c   goto err_dir
  19. echo Directories OK.
  20.  
  21. if %1 == MSC goto ok_msc
  22. if %1 == msc goto ok_msc
  23. if %1 == GCC goto ok_gcc
  24. if %1 == gcc goto ok_gcc
  25. goto err_set
  26.  
  27. :ok_gcc
  28. echo Copying Makefiles.
  29. echo "MakeGCC.src -> ..\..\src\makefile"
  30. copy makegcc.src ..\..\src\makefile
  31. echo "MakeGCC.utl -> ..\..\util\makefile"
  32. copy makegcc.utl ..\..\util\makefile
  33. echo "Makefile.dat -> ..\..\dat\makefile"
  34. copy makefile.dat ..\..\dat\makefile
  35. goto done
  36.  
  37. :ok_msc
  38. echo Setting Environment variables for Compiler.
  39. set  CL= /AL /G2 /Oo /Gs /Gt18 /Zp1 /W0 /I..\include /nologo /DMOVERLAY
  40. echo Copying Makefiles.
  41. echo "MakeMSC.src -> ..\..\dat\makefile"
  42. copy makemsc.src ..\..\src\makefile
  43. echo "MakeMSC.utl -> ..\..\dat\makefile"
  44. copy makemsc.utl ..\..\util\makefile
  45. echo "Makefile.dat -> ..\..\dat\makefile"
  46. copy makefile.dat ..\..\dat\makefile
  47. echo Copying in dungeon compiler files.
  48. copy ..\share\*.h    ..\..\include
  49. copy ..\share\lev*.c ..\..\util
  50. copy ..\share\dgn*.c ..\..\util
  51. goto done
  52.  
  53. :err_set
  54. echo Usage:
  55. echo "%0 <MSC | GCC>"
  56. echo -  Run this batch file with either MSC or GCC as the argument
  57. echo    depending on which compiler you are using.
  58. echo    Currently no support for the Borland set of compilers.
  59. goto end
  60.  
  61. :err_dir
  62. echo/
  63. echo Your directories are not set up properly, please re-read the
  64. echo Install.dos and README documentation.
  65. goto end
  66.  
  67. :done
  68. echo Setup Done!
  69. echo Please continue with next step from Install.dos.
  70.  
  71. :end
  72.